//
//  UIButton+Localizable.m
//  TenMinDemo
//
//  Created by Shawn Li on 2021/3/14.
//  Copyright © 2021 CYXiang. All rights reserved.
//

#import "UIButton+Localizable.h"

@implementation UIButton (Localizable)
- (void)setXibLocKey:(NSString *)xibLocKey{
    NSString *str = LCLocalizedString(xibLocKey, nil);
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    [self setTitle:str forState:(UIControlStateNormal)];
}
-  (NSString *)xibLocKey{
return nil;
}
@end
